import request from '@/utils/request'

// 文章分类列表
export function articleCateLists(params?: any) {
    return request.get({ url: '/article.articleCate/lists', params })
}



// 消息订阅列表
export function dingyueLists(params?: any) {
    return request.get({ url: '/article.xiaoxi/lists', params })
}

export function enterpriselist(params?: any) {
    return request.get({ url: '/article.enterprise/lists', params })
}

// export function qualificationslist(params?: any) {
//     return request.get({ url: '/article.qualifications/lists', params })
// }
export function qualificationslist(params?: any) {
    return request.get({ url: '/article.Enterprise/lists', params })
}
// 文章分类列表
export function articleCateAll(params?: any) {
    return request.get({ url: '/article.articleCate/all', params })
}

// 供应分类列表
export function supplyCateAll(params?: any) {
    return request.get({ url: '/article.supplyCate/all', params })
}

export function lists(params?: any) {
    return request.get({ url: '/article.articleCate/all', params })
}
export function qiye(params?: any) {
    return request.get({ url: '/article.Enterprise/lists', params })
}
// 添加文章分类
export function articleCateAdd(params: any) {
    return request.post({ url: '/article.articleCate/add', params })
}


// 添加消息订阅
export function dingyeuAdd(params: any) {
    return request.post({ url: '/article.xiaoxi/add', params })
}

// 编辑文章分类
export function articleCateEdit(params: any) {
    return request.post({ url: '/article.articleCate/edit', params })
}


// 编辑消息订阅
export function dingyeuEdit(params: any) {
    return request.post({ url: '/article.xiaoxi/edit', params })
}

// 删除文章分类
export function articleCateDelete(params: any) {
    return request.post({ url: '/article.articleCate/delete', params })
}



// 删除消息订阅
export function dingyueDelete(params: any) {
    return request.post({ url: '/article.xiaoxi/delete', params })
}


// 文章分类详情
export function articleCateDetail(params: any) {
    return request.get({ url: '/article.articleCate/detail', params })
}

// 消息订阅详情
export function dingyeuDetail(params: any) {
    return request.get({ url: '/article.xiaoxi/detail', params })
}

// 文章分类状态
export function articleCateStatus(params: any) {
    return request.post({ url: '/article.articleCate/updateStatus', params })
}

// 文章列表
export function articleLists(params?: any) {
    return request.get({ url: '/article.article/lists', params })
}


// 供应信息列表
export function supplyLists(params?: any) {
    return request.get({ url: '/article.Supply/lists', params })
}



// vip列表
export function vipLists(params?: any) {
    return request.get({ url: '/article.vip/lists', params })
}


// 文章列表
export function articleAll(params?: any) {
    return request.get({ url: '/article/all', params })
}

// 添加文章
export function articleAdd(params: any) {
    return request.post({ url: '/article.vip/addsp', params })
}

// 添加vip
export function vipAdd(params: any) {
    return request.post({ url: '/article.vip/add', params })
}


export function enterpriseAdd(params: any) {
    return request.post({ url: '/article.Enterprise/add', params })
}
// 编辑文章
export function articleEdit(params: any) {
    return request.post({ url: '/article.article/edit', params })
}

// 编辑vip
export function vipEdit(params: any) {
    return request.post({ url: '/article.vip/edit', params })
}


export function enterpriseEdit(params: any) {
    return request.post({ url: '/article.Enterprise/edit', params })
}
// 删除文章
export function articleDelete(params: any) {
    return request.post({ url: '/article.article/delete', params })
}


// 删除供应信息
export function sullpyDelete(params: any) {
    return request.post({ url: '/article.Supply/delete', params })
}


// 删除文章
export function zizhiDelete(params: any) {
    return request.post({ url: '/article.qualifications/delete', params })
}

// 删除会员
export function vipDelete(params: any) {
    return request.post({ url: '/article.vip/delete', params })
}


export function enterpriseDelete(params: any) {
    return request.post({ url: '/article.Enterprise/delete', params })
}
export function qualificationstg(params: any) {
    return request.get({ url: '/user.user/qualificationstg', params })
}
export function qualificationsjj(params: any) {
    return request.get({ url: '/user.user/qualificationsjj', params })
}


// 文章详情
// export function enterpriseDetail(params: any) {
//     return request.get({ url: '/article.enterprise/edit', params })
// }
export function enterpriseDetail(params: any) {
    return request.get({ url: '/article.enterprise/detail', params })
}


export function articleDetail(params: any) {
    return request.get({ url: '/article.article/detail', params })
}

// 供应详情
export function supplyDetail(params: any) {
    return request.get({ url: '/article.Supply/detail', params })
}
// 文章分类状态
export function articleStatus(params: any) {
    return request.post({ url: '/article.article/updateStatus', params })
}


// 供应分类状态
export function supplyStatus(params: any) {
    return request.post({ url: '/article.Supply/updateStatus', params })
}


// 资质管理
export function zizhhiStatus(params: any) {
    return request.post({ url: '/article.qualifications/edit', params })
}


// vip详情
export function vipDetail(params: any) {
    return request.get({ url: '/article.vip/detail', params })
}


// 批量删除
export function batchDelete(params: any) {
    return request.post({ url: '/article.Supply/alldelete', params })
}

// 批量同意
export function batchPass(params: any) {
    return request.post({ url: '/article.Supply/alltonguo', params })
}

// 批量不同意
export function batchNotpassed(params: any) {
    return request.post({ url: '/article.Supply/allbutonguo', params })
}


// 批量删除
export function batchDelete1(params: any) {
    return request.post({ url: '/article.article/alldelete', params })
}

// 批量同意
export function batchPass1(params: any) {
    return request.post({ url: '/article.article/alltonguo', params })
}

// 批量不同意
export function batchNotpassed1(params: any) {
    return request.post({ url: '/article.article/allbutonguo', params })
}